
var aAnswers = new Array( 15 );

aAnswers[ 0 ] = 1;
aAnswers[ 1 ] = 1;
aAnswers[ 2 ] = 1;
aAnswers[ 3 ] = 1;
aAnswers[ 4 ] = 0;
aAnswers[ 5 ] = 0;
aAnswers[ 6 ] = 0;
aAnswers[ 7 ] = 0;
aAnswers[ 8 ] = 0;
aAnswers[ 9 ] = 0;
aAnswers[ 10 ] = 0;
aAnswers[ 11 ] = 0;
aAnswers[ 12 ] = 0;
aAnswers[ 13 ] = 0;
aAnswers[ 14 ] = 0;

function processSurvey()
{
	var aResponses = document.forms.form2.question0;
	
	var nCorrectResponses = 0;
	
		
	if( aResponses[ aAnswers[ 0 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	
	}
	
	
		
	aResponses = document.forms.form2.question1;
	
	if( aResponses[ aAnswers[ 1 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	
	}
	
		
	aResponses = document.forms.form2.question2;
	
	if( aResponses[ aAnswers[ 2 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	
	}
	
	
	aResponses = document.forms.form2.question3;
	
	if( aResponses[ aAnswers[ 3 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form2.question4;
	
	if( aResponses[ aAnswers[ 4 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form2.question5;
	
	if( aResponses[ aAnswers[ 5 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form2.question6;
	
	if( aResponses[ aAnswers[ 6 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
aResponses = document.forms.form2.question7;
	
	if( aResponses[ aAnswers[ 7 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
aResponses = document.forms.form2.question8;
	
	if( aResponses[ aAnswers[ 8 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form2.question9;
	
	if( aResponses[ aAnswers[ 9 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form2.question10;
	
	if( aResponses[ aAnswers[ 10 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
		aResponses = document.forms.form2.question11;
	
	if( aResponses[ aAnswers[ 11 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form2.question12;
	
	if( aResponses[ aAnswers[ 12 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form2.question13;
	
	if( aResponses[ aAnswers[ 13 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form2.question14;
	
	if( aResponses[ aAnswers[ 14 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	if( nCorrectResponses >= 15 )
	{
		alert( "Thank you for competing the survey, you may continue in the course." );
	}
	else
	{
		alert( "Please complete the survey before continuing." );
	}
	
}